<?php
/* -------------------------------------------------------------------------------------
* 	ID:						$Id: page_per_site.php 135 2013-09-22 07:30:55Z phone.mueller@googlemail.com $
* 	Letzter Stand:			$Revision: 135 $
* 	zuletzt geaendert von:	$Author: siekiera $
* 	Datum:					$Date: 2013-09-22 07:30:55 +0000 (Sun, 22 Sep 2013) $
*
* 	SEO:mercari by Siekiera Media
* 	http://www.seo-mercari.de
*
* 	Copyright (c) since 2011 SEO:mercari
* --------------------------------------------------------------------------------------
* 	based on:
* 	(c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
* 	(c) 2002-2003 osCommerce - www.oscommerce.com
* 	(c) 2003     nextcommerce - www.nextcommerce.org
* 	(c) 2005     xt:Commerce - www.xt-commerce.com
*
* 	Released under the GNU General Public License
* ----------------------------------------------------------------------------------- */

$page = '';
if(isset($_GET['page']))
	$page = '&page='.$_GET['page'];

switch($listing->cols) {
	case '3' :
		$view_per_site  = ($listing->perPage == 9 ? '<b>9</b>' : '<a title="9 '.PAGE_PER_SEITE.'" href="'.$listing->setExternalLink.$listing->sep.'per_site=9'.$page.'">9</a>').' | ';
		$view_per_site .= ($listing->perPage == 18 ? '<b>18</b>' : '<a title="18 '.PAGE_PER_SEITE.'" href="'.$listing->setExternalLink.$listing->sep.'per_site=18'.$page.'">18</a>').' | ';
		$view_per_site .= ($listing->perPage == 27 ? '<b>27</b>' : '<a title="27 '.PAGE_PER_SEITE.'" href="'.$listing->setExternalLink.$listing->sep.'per_site=27'.$page.'">27</a>').' | ';
		$view_per_site .= ($listing->perPage == 45 ? '<b>45</b>' : '<a title="45 '.PAGE_PER_SEITE.'" href="'.$listing->setExternalLink.$listing->sep.'per_site=45'.$page.'">45</a>').' | ';
		$view_per_site .= ($listing->perPage == 81 ? '<b>81</b>' : '<a title="81 '.PAGE_PER_SEITE.'" href="'.$listing->setExternalLink.$listing->sep.'per_site=81'.$page.'">81</a>');
		break;

	case '4' :
		$view_per_site  = ($listing->perPage == 12 ? '<b>12</b>' : '<a title="12 '.PAGE_PER_SEITE.'" href="'.$listing->setExternalLink.$listing->sep.'per_site=12'.$page.'">12</a>').' | ';
		$view_per_site .= ($listing->perPage == 24 ? '<b>24</b>' : '<a title="24 '.PAGE_PER_SEITE.'" href="'.$listing->setExternalLink.$listing->sep.'per_site=24'.$page.'">24</a>').' | ';
		$view_per_site .= ($listing->perPage == 60 ? '<b>60</b>' : '<a title="60 '.PAGE_PER_SEITE.'" href="'.$listing->setExternalLink.$listing->sep.'per_site=60'.$page.'">60</a>').' | ';
		$view_per_site .= ($listing->perPage == 84 ? '<b>84</b>' : '<a title="84 '.PAGE_PER_SEITE.'" href="'.$listing->setExternalLink.$listing->sep.'per_site=84'.$page.'">84</a>').' | ';
		$view_per_site .= ($listing->perPage == 96 ? '<b>96</b>' : '<a title="96 '.PAGE_PER_SEITE.'" href="'.$listing->setExternalLink.$listing->sep.'per_site=96'.$page.'">96</a>');
		break;

	default :
		$view_per_site  = ($listing->perPage == 10 ? '<b>10</b>' : '<a title="10 '.PAGE_PER_SEITE.'" href="'.$listing->setExternalLink.$listing->sep.'per_site=10'.$page.'">10</a>').' | ';
		$view_per_site .= ($listing->perPage == 20 ? '<b>20</b>' : '<a title="20 '.PAGE_PER_SEITE.'" href="'.$listing->setExternalLink.$listing->sep.'per_site=20'.$page.'">20</a>').' | ';
		$view_per_site .= ($listing->perPage == 30 ? '<b>30</b>' : '<a title="30 '.PAGE_PER_SEITE.'" href="'.$listing->setExternalLink.$listing->sep.'per_site=30'.$page.'">30</a>').' | ';
		$view_per_site .= ($listing->perPage == 50 ? '<b>50</b>' : '<a title="50 '.PAGE_PER_SEITE.'" href="'.$listing->setExternalLink.$listing->sep.'per_site=50'.$page.'">50</a>').' | ';
		$view_per_site .= ($listing->perPage == 100 ? '<b>100</b>' : '<a title="100 '.PAGE_PER_SEITE.'" href="'.$listing->setExternalLink.$listing->sep.'per_site=100'.$page.'">100</a>');
		break;
}

$module_smarty->assign('PRODUCTS_PER_SITE', '<li class="page_per_site">'.$view_per_site.'</li>');
?>